const ora = require('ora');

const spinner = ora();

module.exports = {
  text(text) {
    spinner.text = `${text}\n`;
  },
  start(text) {
    this.text(text);
    spinner.start();
  },
  success(text) {
    this.text(text);
    spinner.succeed();
  },
  successStop(text) {
    this.success(text);
    spinner.stop();
  },
};
